package org.breezeiot.protodecode.dataobject.gw.afn04;

import com.alibaba.fastjson.annotation.JSONField;
import org.breezeiot.protodecode.protocol.chargingpile.MsgCommData;

import java.util.Date;
import java.util.List;

/**
 * AFN:04 <br>
 * F65：定时上报1类数据任务设置<br>
 * F66：定时上报2类数据任务设置
 * 
 * @author zoe
 */
public class RtuParamF65F66 extends MsgCommData {

    private short         taskid;    // 任务号：1～64
    private short         tasktype;  // 任务类型：1类数据任务(1),2类数据任务(2)

    private short         iseffect;  // 是否有效：0：无效，1：有效
    private short         cycletype; // 定时上报周期单位:0～3依次表示分、时、日、月
    private int           period;    // 定时上报周期
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date          dt;        // 上报基准时间：秒分时日月年
    private short         r;         // 曲线数据抽取倍率R:取值范围1～96

    private List<Integer> fnList;    // 数据项
    private List<Integer> pnList;    // 测量点

    public short getTaskid() {
        return taskid;
    }

    public void setTaskid(short taskid) {
        this.taskid = taskid;
    }

    public short getTasktype() {
        return tasktype;
    }

    public void setTasktype(short tasktype) {
        this.tasktype = tasktype;
    }

    public short getIseffect() {
        return iseffect;
    }

    public void setIseffect(short iseffect) {
        this.iseffect = iseffect;
    }

    public short getCycletype() {
        return cycletype;
    }

    public void setCycletype(short cycletype) {
        this.cycletype = cycletype;
    }

    public int getPeriod() {
        return period;
    }

    public void setPeriod(int period) {
        this.period = period;
    }

    public Date getDt() {
        return dt;
    }

    public void setDt(Date dt) {
        this.dt = dt;
    }

    public short getR() {
        return r;
    }

    public void setR(short r) {
        this.r = r;
    }

    public List<Integer> getFnList() {
        return fnList;
    }

    public void setFnList(List<Integer> fnList) {
        this.fnList = fnList;
    }

    public List<Integer> getPnList() {
        return pnList;
    }

    public void setPnList(List<Integer> pnList) {
        this.pnList = pnList;
    }

}
